<?php

namespace App\Http\Controllers\Home;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redis;
use App\Http\Controllers\Controller;

class RedisController extends Controller
{   
//    public function __construct() {
//        Redis::connection();
//    }
    public function set()
    {   
        $redis = Redis::connection();
       
        Predis::set('name', 'sean');
    }

    public function get()
    {
        $name = Predis::get('name');
        var_dump($name);
    }
}
